package com.xianyu.us.common.vo;

import java.io.Serializable;
import java.util.List;

/**
 * 	配置公共的分页
 * @author wujianlong
 *
 */
public class PageObject<T> implements Serializable {

	/**
	 * 生成唯一的序列号
	 */
	private static final long serialVersionUID = 9759978770310705L;
	
	/**当前页的页码值*/
	private Integer pageCurrent;
	/**页面的记录数*/
	private Integer pageSize;
	/**总行数*/
	private Integer rowCount;
	/**总页数*/
	private Integer pageCount;
	/**当前页的记录*/
	private List<T> records;
	
	public PageObject() {}
	
	public PageObject(Integer pageCurrent, Integer pageSize, Integer rowCount, Integer pageCount, List<T> records) {
		super();
		this.pageCurrent = pageCurrent;
		this.pageSize = pageSize;
		this.rowCount = rowCount;
		this.pageCount = pageCount;
		this.records = records;
		
	}
	public Integer getPageCurrent() {
		return pageCurrent;
	}
	public void setPageCurrent(Integer pageCurrent) {
		this.pageCurrent = pageCurrent;
	}
	public Integer getPageSize() {
		return pageSize;
	}
	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}
	public Integer getRowCount() {
		return rowCount;
	}
	public void setRowCount(Integer rowCount) {
		this.rowCount = rowCount;
	}
	public Integer getPageCount() {
		return pageCount;
	}
	public void setPageCount(Integer pageCount) {
		this.pageCount = pageCount;
	}
	public List<T> getRecords() {
		return records;
	}
	public void setRecords(List<T> records) {
		this.records = records;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	public String toString() {
		return "PageObject [pageCurrent=" + pageCurrent + ", pageSize=" + pageSize + ", rowCount=" + rowCount
				+ ", pageCount=" + pageCount + ", records=" + records + "]";
	}

	
	
	
}
